package com.yasin.base;

import com.alibaba.fastjson.JSON;

/**
 * Created by huangyx on 2016/12/16 0016.
 */
public class JsonUtil {

    private JsonUtil(){}

    public static <T> T parseObject(String json, Class<T> clazz){
        return JSON.parseObject(json, clazz);
    }

    public static String toJSONString(Object object){
        return JSON.toJSONString(object);
    }
}